import request from "@/utils/request";



export default {
    getMenuList() {
        return request({
            url: '/users/getPermissionList',
            method: 'GET'
        })
    },
    getUserList(data) {
        return request({
            url: '/users/list',
            method: 'GET',
            data
        })
    },
    removeUser(userIds) {
        return request({
            url: '/users/delete',
            method: 'POST',
            data: {
                userIds
            }
        })
    },
    operateUser(data) {
        return request({
            url: '/users/operate',
            method: 'POST',
            data
        })
    },
    getRoleList(){
        return request({
            url: '/roles/allList',
            method: 'GET',
        })
    },
    getDeptList(){
        return request({
            url: '/dept/list',
            method: 'GET',
        })
    },
}